const INITIAL_STATE = {
	store:{},
	cartList:[],
	address: {},
}

export default function order(state = INITIAL_STATE, action) {
	switch (action.type) {
		case 'order_updateState':
			return {
				...state,
				...action.data
			}
		case 'order_reset':
			return {
				store:{},
				cartList:[],
				address: {},
			}
		default:
			return state
	}
}
